package cn.blossoming.service.dto;

import cn.blossoming.dao.domain.TipsPictureEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor

public class TipsPicture {

    private Integer id;
    private Integer stepNum;
    private Integer imgHeight;
    private Integer imgWidth;
    private String url;
    private String sourceUrl;
    private String content;
    private String remark;

    public TipsPicture(TipsPictureEntity entity) {
        this.id = entity.getId();
        this.stepNum = entity.getStepNum();
        this.imgHeight = entity.getImgHeight();
        this.imgWidth = entity.getImgWidth();
        this.url = entity.getUrl();
        this.sourceUrl = entity.getSourceUrl();
        this.content = entity.getContent();
        this.remark = entity.getRemark();
    }

    private Tips tips;

}
